set hilite of background button id buttonID to false
set hilite of background button id 6 to true
end if
end closeBackground
on openCard
global buttonID
put the long date into field "date"
if buttonID is not 6 then
set hilite of background button id buttonID to false
set hilite of background button id 6 to true
put 6 into buttonID
end if
end openCard
on doMenu menuItem
lock screen
if ((menuItem contains "About") OR (menuItem is "Home") OR (menuItem contains "Quit") OR (menuItem is "Report Manager") OR (menuItem is "Report Cards") OR (menuItem is "Close") OR (menuItem is "All Students") OR (menuItem is "By Class") OR (menuItem is "By Grade") OR (menuItem is "By Homeroom") OR (menuItem is "By ID's") OR (menuItem is "Single Student") OR (menuItem is "Period To Daily Link…") OR (menuItem is "Action Comment…")) then
pop card
send "doMenu menuItem" to background "CSL Attendance Window"
end if
unlock screen
end doMenu
on mouseUp
global buttonID
if buttonID is id of target then
lock screen
go to card "By Class" of background "CSL Attendance Window"
unlock screen
else
if ("button" is not in name of target) OR (line id of target - 5 of field "Class" is empty) then exit mouseUp
set hilite of background button id buttonID to false